<?php if ($position == 'content_top'  or $position == 'content_bottom') { ?>
<div class="box">
    <div class="box-heading"><!--?php echo $heading_title; ?--></div>
    <div class="box-content">
        <div class="box-product">
            <?php foreach ($products as $product) { ?>
            <div>
                <?php if ($product['thumb']) { ?>
                <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" />
                    <span class="tip"><img src="<?php echo $product['image']; ?>"  alt="" /></span> 
                    </a></div>
                <?php } ?>
                <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
                <div class="code"><?php echo $product['code']; ?></div>
            
               
            </div>
            <?php } ?>
        </div>
    </div>
</div>

<?php } else if ($position == 'column_left' or $position == 'column_right') { ?>                            
<div class="box-left">
    <div class="box-heading"><?php echo $heading_title; ?></div>
    <div class="box-content">
        <div class="box-product-left">
            <?php foreach ($products as $product) { ?>
            <div>
                <?php if ($product['thumb']) { ?>
                <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" />
                        <span class="tip"><img src="<?php echo $product['image']; ?>"  alt="" /></span> </a></div>
                <?php } ?>
                <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
                <div class="code"><?php echo $product['code']; ?></div>

            </div>
            <?php } ?>
        </div>
    </div>
</div>                                   

<?php } ?>
